<template>
  <div class="home-container">
    <div class="welcome-section">
      <h1>欢迎使用清泉到家系统</h1>
      <p>为您提供便捷的送水服务</p>
    </div>
    
    <el-row :gutter="20" class="feature-section">
      <el-col :span="8">
        <el-card class="feature-card">
          <div class="feature-icon">
            <i class="el-icon-shopping-cart-full"></i>
          </div>
          <div class="feature-title">便捷购物</div>
          <div class="feature-desc">轻松选购各种品牌矿泉水</div>
        </el-card>
      </el-col>
      
      <el-col :span="8">
        <el-card class="feature-card">
          <div class="feature-icon">
            <i class="el-icon-truck"></i>
          </div>
          <div class="feature-title">快速配送</div>
          <div class="feature-desc">专业送水员，及时送达</div>
        </el-card>
      </el-col>
      
      <el-col :span="8">
        <el-card class="feature-card">
          <div class="feature-icon">
            <i class="el-icon-service"></i>
          </div>
          <div class="feature-title">优质服务</div>
          <div class="feature-desc">提供完善的售后服务</div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'Home',
  data() {
    return {
      userRole: ''
    }
  },
  created() {
    // 获取用户角色
    this.userRole = localStorage.getItem('userRole')
  }
}
</script>

<style scoped>
.home-container {
  padding: 20px;
}

.welcome-section {
  text-align: center;
  margin-bottom: 50px;
}

.welcome-section h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #303133;
}

.welcome-section p {
  font-size: 18px;
  color: #606266;
}

.feature-section {
  margin-top: 30px;
}

.feature-card {
  height: 200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 50px;
  color: #409EFF;
  margin-bottom: 15px;
}

.feature-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #303133;
}

.feature-desc {
  font-size: 14px;
  color: #606266;
}
</style> 